using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace Cuahsi.Data.Interop.WaterML2.swe_20
{
    [XmlInclude(typeof(DataChoiceType))]
    [XmlInclude(typeof(DataArrayType))]
    [XmlInclude(typeof(MatrixType))]
    [XmlInclude(typeof(VectorType))]
    [XmlInclude(typeof(DataRecordType))]
    [XmlInclude(typeof(AbstractSimpleComponentType))]
    [XmlInclude(typeof(CountRangeType))]
    [XmlInclude(typeof(BooleanType))]
    [XmlInclude(typeof(TimeRangeType))]
    [XmlInclude(typeof(TimeType))]
    [XmlInclude(typeof(CategoryRangeType))]
    [XmlInclude(typeof(CountType))]
    [XmlInclude(typeof(TextType))]
    [XmlInclude(typeof(CategoryType))]
    [XmlInclude(typeof(QuantityRangeType))]
    [XmlInclude(typeof(QuantityType))]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233")]
    [Serializable()]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [XmlType(Namespace = "http://www.opengis.net/swe/2.0")]
    [XmlRoot("AbstractDataComponent", Namespace = "http://www.opengis.net/swe/2.0", IsNullable = false)]
    [DataContract(Name = "AbstractDataComponentType", Namespace = "http://www.opengis.net/swe/2.0")]
    public abstract partial class AbstractDataComponentType : AbstractSWEIdentifiableType
    {

        private bool updatableField;

        private bool optionalField;

        private string definitionField;

        public AbstractDataComponentType()
        {
            this.optionalField = false;
        }

        [XmlAttribute()]
        [DataMember()]
        public bool updatable
        {
            get
            {
                return this.updatableField;
            }
            set
            {
                this.updatableField = value;
            }
        }

        [XmlAttribute()]
        [DefaultValue(false)]
        [DataMember()]
        public bool optional
        {
            get
            {
                return this.optionalField;
            }
            set
            {
                this.optionalField = value;
            }
        }

        [XmlAttribute(DataType = "anyURI")]
        [DataMember()]
        public string definition
        {
            get
            {
                return this.definitionField;
            }
            set
            {
                this.definitionField = value;
            }
        }
    }
}